<template>
    <div id="app">
        <!-- <keep-alive>
            <router-view v-if="$route.meta.isKeepAlive"></router-view>
        </keep-alive> -->
        <!-- <router-view v-if="!$route.meta.isKeepAlive"></router-view> -->
        <router-view></router-view>
    </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
    name: "App",
    components: {},
    computed: {
        ...mapGetters(["theme"]),
    },
    mounted() {
        localStorage.setItem("IS_RELOAD", "pageReload");
        document.documentElement.setAttribute("data-theme", this.theme);
    },
};
</script>

<style>
#app {
    height: 100%;
    padding: 2px;
    box-sizing: border-box;
    background-color: #eceff6;
}
</style>
